//
//  PageCell1TableViewCell.m
//  PlayerWorld
//
//  Created by 1 on 16/5/12.
//  Copyright © 2016年 刘成. All rights reserved.
//
#define UISCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define UISCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#import "PageCell1TableViewCell.h"

@implementation PageCell1TableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        // 投注图片
        _bettingRecordImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 50, 50)];
        [_bettingRecordImageView setImage:[UIImage imageNamed:@"logo_qtc_2_lg"]];
        [self.contentView addSubview:_bettingRecordImageView];
        
        // 投注标题
        _bettingRecordLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_bettingRecordImageView.frame)+10, 10, UISCREEN_WIDTH-120, 20)];
        _bettingRecordLabel.font = [UIFont systemFontOfSize:16];
//        _bettingRecordLabel.text = @"重庆时时彩-多星-五星复式";
        [self.contentView addSubview:_bettingRecordLabel];
        
        // 投注期号
        _bettingissueLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_bettingRecordImageView.frame)+10, 30, UISCREEN_WIDTH-120, 20)];
        _bettingissueLabel.font = [UIFont systemFontOfSize:12];
        _bettingissueLabel.textColor = [UIColor lightGrayColor];
//        _bettingissueLabel.text = @"第 20150225-059期";
        [self.contentView addSubview:_bettingissueLabel];

        // 投注时间
        _BettingtimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_bettingRecordImageView.frame)+10, 50, UISCREEN_WIDTH-120, 20)];
        _BettingtimeLabel.font = [UIFont systemFontOfSize:12];
        _BettingtimeLabel.textColor = [UIColor lightGrayColor];
//        _BettingtimeLabel.text = @"第 20150225-059期";
        [self.contentView addSubview:_BettingtimeLabel];


        // 投注钱数
        _betMoneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_bettingRecordImageView.frame)+10, CGRectGetMaxY(_BettingtimeLabel.frame), UISCREEN_WIDTH-120, 20)];
        _betMoneyLabel.font = [UIFont systemFontOfSize:12];
        _betMoneyLabel.textColor = [UIColor lightGrayColor];
         [self.contentView addSubview:_betMoneyLabel];
        
        // 彩种结果
        _bettingResultsLabel = [[UILabel alloc] initWithFrame:CGRectMake(UISCREEN_WIDTH-50-10, CGRectGetMinY(_betMoneyLabel.frame), 50, 20)];
        _bettingResultsLabel.font = [UIFont systemFontOfSize:14];
        _bettingResultsLabel.textColor = [UIColor lightGrayColor];
//        _bettingResultsLabel.text = @"未中奖";
        [self.contentView addSubview:_bettingResultsLabel];

        
    }
    return self;
}


@end
